package config

type Config struct {
	Mysql Mysql  `yaml:"mysql"`
	Redis Redis  `yaml:"redis"`
	BizID int64  `yaml:"biz_id"`
	Email Email  `yaml:"email"`
	Host  string `yaml:"host"`
}

type Email struct {
	Host     string `yaml:"host"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Identity string `yaml:"identity"`
	Port     string `yaml:"port"`
	From     string `yaml:"from"`
}

type Mysql struct {
	Switch   bool   `yaml:"switch"`
	Host     string `yaml:"host"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Port     string `yaml:"port"`
	DBName   string `yaml:"db_name"`
}

type Redis struct {
	Switch bool   `yaml:"switch"`
	Host   string `yaml:"host"`
	Port   int    `yaml:"port"`
	Auth   string `yaml:"auth"`
}
